﻿using System;
using System.Collections.Generic;
using WebApplication11.Dao;
using WebApplication11.Models;

namespace WebApplication11.Services;

public class tpService
{
    private tpDao _tpDao = new tpDao();
    private departmentDao _departmentDao = new departmentDao();
    public List<tp> getMsg()
    {
        return _tpDao.getMsg();
    }
    
    public bool delete(String tree, String park)
    {
        return _tpDao.insert(tree, park);
    }

    public bool insert(String tree, String park)
    {
        return _tpDao.insert(tree, park);
    }
    
    public List<leader> getIdentity(string username)
    {
        return _departmentDao.getIdentity(username);
    }
}